<template>
  <div>
    <van-nav-bar left-arrow title="拜访详情" @click-left="onClickLeft">
      <template #right>
        <img src="../assets/images/fanhuishouye.png" alt="" height="21px" />
      </template>
    </van-nav-bar>
    <div class="card">
      <div class="card_left">
        <img src="../assets/images/yonghu.png" alt="" />
        <p>{{ Visitid.custName }}</p><br>
      </div>
    </div>
    <div class="content">
      <h2>
        <img src="../assets/images/基本信息.png" alt="" height="20px" />
        基本信息
      </h2>
      <span>拜访标题</span><i>{{ Visitid.visitTitle }}</i
      ><br />
      <span>拜访时间</span><i>{{ Visitid.visitTime }}</i
      ><br />
      <span>拜访地址</span><i>{{ Visitid.visitAddress }}</i
      ><br />
      <span>拜访原因</span><i>{{ Visitid.visitReason }}</i
      ><br />
      <span>拜访情况</span><i>{{ Visitid.visitSituation }}</i
      ><br />
      <span>竞争信息收集情况</span><i>{{ Visitid.collectSituation }}</i><br />
      <span>创建时间</span><i>{{ Visitid.createTime }}</i
      ><br />
    </div>
  </div>
</template>

<script>
import { VisitID } from "../request/api";
export default {
  data() {
    return {
      Visitid: {},
    };
  },
  created() {
    VisitID({
      id: this.$route.params.id,
    }).then((res) => {
      console.log(res);
      this.Visitid = res.data;
    });
  },
  methods: {
    onClickLeft() {
      this.$router.back();
    },
  },
};
</script>
 
<style lang = "less" scoped>
/deep/ .van-nav-bar {
  background-color: #003399;
  height: 175px;
}
/deep/.van-nav-bar__title {
  color: #fff;
}
/deep/.van-icon-arrow-left::before {
  font-size: 20px;
  color: #fff;
}
.card {
  width: 100%;
  height: 63px;
  z-index: 2;
  position: absolute;
  left: 0;
  top: 67px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 25px;
  box-sizing: border-box;
  .card_left {
    display: flex;
    justify-content: start;
    align-items: center;
    color: #fff;
    img {
      width: 63px;
      height: 63px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.7);
      margin-right: 18px;
      background-color: #fff;
    }
  }
}
.content {
  width: 350px;
  height: 510px;
  padding: 17px;
  box-sizing: border-box;
  background: url("../assets/images/底纹.png") no-repeat center center;
  position: absolute;
  left: 0;
  top: 150px;
  margin-left:11px;
  z-index: 2;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  h2 {
    height: 50px;
    display: flex;
    justify-content: start;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px dashed #e5e5e5;
    img {
      margin-right: 12px;
    }
  }
  span {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    margin-right: 10px;
    color: #999;
  }
  i {
    color: #333;
  }
}
</style>